﻿package net.event
{
	import flash.events.Event;
	/**
	* ...
	* @author ...
	*/
	public class DNetworkCenterEvent extends Event
	{
		/**
		 * 收到大厅登录结果
		 */
        public static const ON_RECV_LOGIN_RESULT:String = "hall_ON_RECV_LOGIN_RESULT";
		
		/**
		 * 收到分区信息
		 */
		public static const ON_RECV_GROUP_INFO:String = "hall_ON_RECV_AREA_INFO";
		
		/**
		 * 收到公告
		 */
		public static const ON_RECV_MESSAGE:String = "hall_ON_RECV_MESSAGE";
		
		
		/**
		 * 重连
		 */
		public static const ON_RECONNECT:String = "hall_ON_RECONNECT";
		
		/**
		 * 登录送钱
		 */
		public static const ON_RECV_GIVE_GOLD:String = "hall_ON_RECV_GIVE_GOLD";		
		
		/**
		 * 刷新个人信息
		 */
		public static const ON_RECV_REFRESH_MYINFO:String = "ON_RECV_REFRESH_MYINFO";
		
		/**
		 * 得到全部好友列表
		 */
		public static const ON_RECV_FRIEND_INFO_PACK:String = "ON_RECV_FRIEND_INFO_PACK";
		/**
		 * 收到帐号被封
		 */
		public static const ON_RECV_DISABLE_ACCOUNT:String = "ON_RECV_DISABLE_ACCOUNT";
		
		private var m_data:Array = null;
		
		/**
		 * 注册事件
		 * @param	szMsg
		 * @param	data
		 */
		public function DNetworkCenterEvent(szMsg:String, data:Array)
		{
			this.m_data = data;
			super(szMsg);
            return;
		}
		public function get data():Array { return m_data; }
	}
	
}